class Product < ActiveRecord::Base
  attr_accessible :auction_id, :description, :isnew, :item_type, :madein, :name, :quantity, :user_id, :img, :hope_price, :max_price, :min_price, :status, :sold_out, :data
  belongs_to :user
  belongs_to :auction
  has_many :auction_prices
  has_many :auctings
  validates_length_of :name, :minimum => 6
  validates_numericality_of :min_price, :max_price, :hope_price, :quantity

end
